Skip to content

Add missing imports and remove useless #10817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 2, 2019

Conversation

gregurco
Copy link
Contributor

@gregurco gregurco commented Dec 28, 2018

I added importing of classes where it's quite important to provide it and removed where class is imported and not used in code block.

@@ -66,6 +66,8 @@ constructor. If your command defines its own constructor, set the properties
first and then call to the parent constructor, to make those properties
available in the ``configure()`` method::

use Symfony\Component\Console\Input\InputArgument;

class CreateUserCommand extends Command
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing command import here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added. Thanks 👍

Copy link
Contributor

@kunicmarko20 kunicmarko20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tbh some if these were probably intentional because they were mentioned in the previous examples but it is maybe better to be explicit here.

@gregurco
Copy link
Contributor Author

@kunicmarko20 yep, there are a lot of places where I observed it and didn't add but there are places where it's better to add 🙂

@xabbuh xabbuh added this to the 3.4 milestone Jan 1, 2019
@javiereguiluz
Copy link
Member

@gregurco thanks a lot for this contribution! There were definitely some important missing imports in some examples. However, in case you are thinking of doing more changes in the future, please keep in mind that we don't want to add all imports in all examples because that would make Symfony Docs unmaintainable. The first example of an article should include all the imports ... but the rest of examples in the same page should only display the new imports and show the rest as //... Thanks!

@javiereguiluz javiereguiluz merged commit a89cfa3 into symfony:3.4 Jan 2, 2019
javiereguiluz added a commit that referenced this pull request Jan 2, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

Add missing imports and remove useless

I added importing of classes where it's quite important to provide it and removed where class is imported and not used in code block.

Commits
-------

a89cfa3 Add missing imports and remove useless
@gregurco gregurco deleted the 3.2_fix_imports branch January 2, 2019 08:48
@gregurco
Copy link
Contributor Author

gregurco commented Jan 2, 2019

@javiereguiluz thank you. I also thought about this strategy 🙂

nikophil pushed a commit to nikophil/symfony-docs that referenced this pull request Jan 3, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

Add missing imports and remove useless

I added importing of classes where it's quite important to provide it and removed where class is imported and not used in code block.

Commits
-------

a89cfa3 Add missing imports and remove useless
javiereguiluz added a commit that referenced this pull request Jan 4, 2019
This PR was merged into the 4.1 branch.

Discussion
----------

Add missing imports and remove useless

I added importing of classes where it's quite important to provide it and removed where class is imported and not used in code block.

This PR is similar to #10817, but here are changes that are actual for v4.1 and aren't for v3.4.

Commits
-------

f1e1bd0 Add missing imports and remove useless
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants